package com.itheima.student;

public class student {
        String name;
        double chiness;
        double math;

        public void printtoalscore() {
            System.out.println(name + "总成绩为：" + (chiness + math));
        }

        public void printaveragescore () {
            System.out.println(name + "平均分为：" + (chiness + math) / 2.0);
        }
}
